<?php
	class Session{
	
		public function Session(){
			if (!isset ($_SESSION['senha']))
				session_start();
		}
		
		public function Set($nomeInd1, $valor1, $nomeInd2='', $valor2='', $nomeInd3='', $valor3='',$nomeInd4='', $valor4=''){
			
			$_SESSION[$nomeInd1]=$valor1;
			$_SESSION[$nomeInd2]=$valor2;
			$_SESSION[$nomeInd3]=$valor3;
			$_SESSION[$nomeInd4]=$valor4;
		}
		
		public function Close(){
			$_SESSION=array();
			session_destroy();
			header("location:/index.php");
		}
	}
?>